package net.lahuobao.finance.entity.accredit;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
@Entity
@Table(name = "accredit", schema = "lahuobao")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class Accredit {
	
    private Integer accreditId;

    private Integer organizationId;

    private Integer accreditTypeId;


    private Short accrualType;

    private BigDecimal accrualRate;

    private BigDecimal total;

    private BigDecimal usable;

    private BigDecimal bill;

    private Short status;

    
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name ="accredit_id",nullable=false,precision=10,scale=0)
    public Integer getAccreditId() {
        return accreditId;
    }

    public void setAccreditId(Integer accreditId) {
        this.accreditId = accreditId;
    }
	@Column(name ="organization_id",nullable=false)
    public Integer getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Integer organizationId) {
        this.organizationId = organizationId;
    }
	@Column(name ="accredit_type_id",nullable=false)
    public Integer getAccreditTypeId() {
        return accreditTypeId;
    }
    
    public void setAccreditTypeId(Integer accreditTypeId) {
        this.accreditTypeId = accreditTypeId;
    }

   
	@Column(name ="accrual_type",nullable=false)
    public Short getAccrualType() {
        return accrualType;
    }

    public void setAccrualType(Short accrualType) {
        this.accrualType = accrualType;
    }
	@Column(name ="accrual_rate",nullable=false)
    public BigDecimal getAccrualRate() {
        return accrualRate;
    }

    public void setAccrualRate(BigDecimal accrualRate) {
        this.accrualRate = accrualRate;
    }
	@Column(name ="total",nullable=false)
    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }
	@Column(name ="usable",nullable=false)
    public BigDecimal getUsable() {
        return usable;
    }

    public void setUsable(BigDecimal usable) {
        this.usable = usable;
    }
	@Column(name ="bill",nullable=false)
    public BigDecimal getBill() {
        return bill;
    }

    public void setBill(BigDecimal bill) {
        this.bill = bill;
    }
	@Column(name ="status",nullable=false)
    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }


}